//---------------------------------------------------------------------------

#ifndef GroupH
#define GroupH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include <Buttons.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <ComCtrls.hpp>
#include <ToolWin.hpp>
#include <ImgList.hpp>
#include <ActnList.hpp>
#include <Menus.hpp>

#define GROUPS_ACNUM 8
//---------------------------------------------------------------------------
class TGroupEdit : public TForm
{
__published:	// IDE-managed Components
        TDBGrid *DBGrid1;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label4;
        TToolBar *ToolBar1;
        TToolButton *tbAddGroup;
        TToolButton *tbEditGroup;
        TToolButton *tbSaveGroup;
        TToolButton *tbCancel;
        TToolButton *ToolButton1;
        TToolButton *tbClose;
  TDBLookupComboBox *cbTeachers;
  TDBEdit *edGroupNumber;
  TDBComboBox *cbForm;
    TActionList *ActionList1;
    TAction *actAddGroup;
    TAction *actEditGroup;
    TAction *actPostGroup;
    TAction *actCancelGroup;
    TAction *actReturnGroup;
    void __fastcall actAddGroupExecute(TObject *Sender);
    void __fastcall actEditGroupExecute(TObject *Sender);
    void __fastcall actPostGroupExecute(TObject *Sender);
    void __fastcall actCancelGroupExecute(TObject *Sender);
    void __fastcall actReturnGroupExecute(TObject *Sender);
    void __fastcall ActionList1Update(TBasicAction *Action, bool &Handled);
    void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
private:	// User declarations
    bool ActionsStates [GROUPS_ACNUM];
    void __fastcall UpdateActState(void);
public:		// User declarations
        __fastcall TGroupEdit(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TGroupEdit *GroupEdit;
//---------------------------------------------------------------------------
#endif
